home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / case-table.elc.z / case-table.elc
Emacs Compiled Lisp  |  1998-10-28  |  2.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 33 | 3a 35 34 3a 34 35 20 31 |an 14 03|:54:45 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 63 61 73 65 2d 74 |19.0/lis|p/case-t|
|00000070| 61 62 6c 65 2e 65 6c 0a | 3b 3b 3b 20 65 6d 61 63 |able.el.|;;; emac|
|00000080| 73 20 76 65 72 73 69 6f | 6e 20 31 39 2e 33 30 2e |s versio|n 19.30.|
|00000090| 37 30 2e 36 2e 0a 3b 3b | 3b 20 62 79 74 65 63 6f |70.6..;;|; byteco|
|000000a0| 6d 70 20 76 65 72 73 69 | 6f 6e 20 46 53 46 20 32 |mp versi|on FSF 2|
|000000b0| 2e 31 30 0a 3b 3b 3b 20 | 6f 70 74 69 6d 69 7a 61 |.10.;;; |optimiza|
|000000c0| 74 69 6f 6e 20 69 73 20 | 6f 6e 2e 0a 3b 3b 3b 20 |tion is |on..;;; |
|000000d0| 74 68 69 73 20 66 69 6c | 65 20 75 73 65 73 20 6f |this fil|e uses o|
|000000e0| 70 63 6f 64 65 73 20 77 | 68 69 63 68 20 64 6f 20 |pcodes w|hich do |
|000000f0| 6e 6f 74 20 65 78 69 73 | 74 20 69 6e 20 45 6d 61 |not exis|t in Ema|
|00000100| 63 73 20 31 38 2e 0a 0a | 28 69 66 20 28 61 6e 64 |cs 18...|(if (and|
|00000110| 20 28 62 6f 75 6e 64 70 | 20 27 65 6d 61 63 73 2d | (boundp| 'emacs-|
|00000120| 76 65 72 73 69 6f 6e 29 | 0a 09 20 28 6f 72 20 28 |version)|.. (or (|
|00000130| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 70 6f |and (bou|ndp 'epo|
|00000140| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 20 65 70 6f |ch::vers|ion) epo|
|00000150| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 0a 09 20 20 |ch::vers|ion).. |
|00000160| 20 20 20 28 73 74 72 69 | 6e 67 2d 6c 65 73 73 70 | (stri|ng-lessp|
|00000170| 20 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 20 22 | emacs-v|ersion "|
|00000180| 31 39 2e 32 39 22 29 29 | 29 0a 20 20 20 20 28 65 |19.29"))|). (e|
|00000190| 72 72 6f 72 20 22 60 63 | 61 73 65 2d 74 61 62 6c |rror "`c|ase-tabl|
|000001a0| 65 2e 65 6c 27 20 77 61 | 73 20 63 6f 6d 70 69 6c |e.el' wa|s compil|
|000001b0| 65 64 20 66 6f 72 20 45 | 6d 61 63 73 20 31 39 2e |ed for E|macs 19.|
|000001c0| 32 39 20 6f 72 20 6c 61 | 74 65 72 22 29 29 0a 0a |29 or la|ter"))..|
|000001d0| 0a 23 40 34 38 20 44 65 | 73 63 72 69 62 65 20 74 |.#@48 De|scribe t|
|000001e0| 68 65 20 63 61 73 65 20 | 74 61 62 6c 65 20 6f 66 |he case |table of|
|000001f0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 75 66 | the cur|rent buf|
|00000200| 66 65 72 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |fer...(d|efalias |
|00000210| 27 64 65 73 63 72 69 62 | 65 2d 62 75 66 66 65 72 |'describ|e-buffer|
|00000220| 2d 63 61 73 65 2d 74 61 | 62 6c 65 20 23 5b 6e 69 |-case-ta|ble #[ni|
|00000230| 6c 20 22 c0 c1 21 1a c3 | c4 c5 20 5c 22 88 8a c6 |l "..!..|.. \"...|
|00000240| 90 0e 07 71 88 c8 5c 6e | 21 88 c9 20 91 2a 87 22 |...q..\n|!.. .*."|
|00000250| 20 5b 6d 61 6b 65 2d 63 | 68 61 72 2d 74 61 62 6c | [make-c|har-tabl|
|00000260| 65 20 63 61 73 65 2d 74 | 61 62 6c 65 20 64 65 73 |e case-t|able des|
|00000270| 63 72 69 70 74 69 6f 6e | 20 6d 61 70 2d 63 68 61 |cription| map-cha|
|00000280| 72 2d 74 61 62 6c 65 20 | 23 5b 28 6b 65 79 20 76 |r-table |#[(key v|
|00000290| 61 6c 75 65 29 20 22 c0 | 09 5c 6e 89 84 0b 00 c3 |alue) ".|.\n.....|
|000002a0| 82 2c 00 5c 6e 89 97 55 | 84 1b 00 c4 c5 5c 6e 97 |.,.\n..U|.....\n.|
|000002b0| 21 50 82 2c 00 5c 6e 89 | 96 55 84 2b 00 c6 c5 5c |!P.,.\n.|.U.+...\|
|000002c0| 6e 96 21 50 82 2c 00 c3 | 23 87 22 20 5b 73 65 74 |n.!P.,..|#." [set|
|000002d0| 2d 63 68 61 72 2d 74 61 | 62 6c 65 2d 72 61 6e 67 |-char-ta|ble-rang|
|000002e0| 65 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6b 65 |e descri|ption ke|
|000002f0| 79 20 22 63 61 73 65 2d | 69 6e 76 61 72 69 61 6e |y "case-|invarian|
|00000300| 74 22 20 22 75 70 70 65 | 72 63 61 73 65 2c 20 6d |t" "uppe|rcase, m|
|00000310| 61 74 63 68 65 73 20 22 | 20 63 68 61 72 2d 74 6f |atches "| char-to|
|00000320| 2d 73 74 72 69 6e 67 20 | 22 6c 6f 77 65 72 63 61 |-string |"lowerca|
|00000330| 73 65 2c 20 6d 61 74 63 | 68 65 73 20 22 5d 20 36 |se, matc|hes "] 6|
|00000340| 5d 20 63 75 72 72 65 6e | 74 2d 63 61 73 65 2d 74 |] curren|t-case-t|
|00000350| 61 62 6c 65 20 22 2a 48 | 65 6c 70 2a 22 20 73 74 |able "*H|elp*" st|
|00000360| 61 6e 64 61 72 64 2d 6f | 75 74 70 75 74 20 64 65 |andard-o|utput de|
|00000370| 73 63 72 69 62 65 2d 76 | 65 63 74 6f 72 20 68 65 |scribe-v|ector he|
|00000380| 6c 70 2d 6d 6f 64 65 5d | 20 33 20 28 23 24 20 2e |lp-mode]| 3 (#$ .|
|00000390| 20 34 37 30 29 20 6e 69 | 6c 5d 29 0a 28 64 65 66 | 470) ni|l]).(def|
|000003a0| 61 6c 69 61 73 20 27 63 | 6f 70 79 2d 63 61 73 65 |alias 'c|opy-case|
|000003b0| 2d 74 61 62 6c 65 20 23 | 5b 28 63 61 73 65 2d 74 |-table #|[(case-t|
|000003c0| 61 62 6c 65 29 20 22 c0 | 09 21 1a c3 5c 6e c4 c5 |able) ".|.!..\n..|
|000003d0| 23 88 c3 5c 6e c6 c5 23 | 88 c3 5c 6e c7 c5 23 88 |#..\n..#|..\n..#.|
|000003e0| 5c 6e 29 87 22 20 5b 63 | 6f 70 79 2d 73 65 71 75 |\n)." [c|opy-sequ|
|000003f0| 65 6e 63 65 20 63 61 73 | 65 2d 74 61 62 6c 65 20 |ence cas|e-table |
|00000400| 63 6f 70 79 20 73 65 74 | 2d 63 68 61 72 2d 74 61 |copy set|-char-ta|
|00000410| 62 6c 65 2d 65 78 74 72 | 61 2d 73 6c 6f 74 20 30 |ble-extr|a-slot 0|
|00000420| 20 6e 69 6c 20 31 20 32 | 5d 20 34 5d 29 0a 23 40 | nil 1 2|] 4]).#@|
|00000430| 32 37 34 20 4d 61 6b 65 | 20 63 68 61 72 61 63 74 |274 Make| charact|
|00000440| 65 72 73 20 4c 20 61 6e | 64 20 52 20 61 20 6d 61 |ers L an|d R a ma|
|00000450| 74 63 68 69 6e 67 20 70 | 61 69 72 20 6f 66 20 6e |tching p|air of n|
|00000460| 6f 6e 2d 63 61 73 65 2d | 63 6f 6e 76 65 72 74 69 |on-case-|converti|
|00000470| 6e 67 20 64 65 6c 69 6d | 69 74 65 72 73 2e 0a 54 |ng delim|iters..T|
|00000480| 68 69 73 20 73 65 74 73 | 20 74 68 65 20 65 6e 74 |his sets| the ent|
|00000490| 72 69 65 73 20 66 6f 72 | 20 4c 20 61 6e 64 20 52 |ries for| L and R|
|000004a0| 20 69 6e 20 54 41 42 4c | 45 2c 20 77 68 69 63 68 | in TABL|E, which|
|000004b0| 20 69 73 20 61 20 73 74 | 72 69 6e 67 0a 74 68 61 | is a st|ring.tha|
|000004c0| 74 20 77 69 6c 6c 20 62 | 65 20 75 73 65 64 20 61 |t will b|e used a|
|000004d0| 73 20 74 68 65 20 64 6f | 77 6e 63 61 73 65 20 70 |s the do|wncase p|
|000004e0| 61 72 74 20 6f 66 20 61 | 20 63 61 73 65 20 74 61 |art of a| case ta|
|000004f0| 62 6c 65 2e 0a 49 74 20 | 61 6c 73 6f 20 6d 6f 64 |ble..It |also mod|
|00000500| 69 66 69 65 73 20 60 73 | 74 61 6e 64 61 72 64 2d |ifies `s|tandard-|
|00000510| 73 79 6e 74 61 78 2d 74 | 61 62 6c 65 27 20 74 6f |syntax-t|able' to|
|00000520| 0a 69 6e 64 69 63 61 74 | 65 20 6c 65 66 74 20 61 |.indicat|e left a|
|00000530| 6e 64 20 72 69 67 68 74 | 20 64 65 6c 69 6d 69 74 |nd right| delimit|
|00000540| 65 72 73 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ers...(d|efalias |
|00000550| 27 73 65 74 2d 63 61 73 | 65 2d 73 79 6e 74 61 78 |'set-cas|e-syntax|
|00000560| 2d 64 65 6c 69 6d 73 20 | 23 5b 28 6c 20 72 20 74 |-delims |#[(l r t|
|00000570| 61 62 6c 65 29 20 22 08 | 09 89 49 88 08 5c 6e 89 |able) ".|..I..\n.|
|00000580| 49 88 c3 08 c4 c5 23 88 | c3 08 c6 c5 23 88 c3 08 |I.....#.|....#...|
|00000590| c7 c5 23 88 c8 09 c9 ca | 5c 6e 21 cb 51 cc 20 23 |..#.....|\n!.Q. #|
|000005a0| 88 c8 5c 6e cd ca 09 21 | cb 51 cc 20 23 87 22 20 |..\n...!|.Q. #." |
|000005b0| 5b 74 61 62 6c 65 20 6c | 20 72 20 73 65 74 2d 63 |[table l| r set-c|
|000005c0| 68 61 72 2d 74 61 62 6c | 65 2d 65 78 74 72 61 2d |har-tabl|e-extra-|
|000005d0| 73 6c 6f 74 20 30 20 6e | 69 6c 20 31 20 32 20 6d |slot 0 n|il 1 2 m|
|000005e0| 6f 64 69 66 79 2d 73 79 | 6e 74 61 78 2d 65 6e 74 |odify-sy|ntax-ent|
|000005f0| 72 79 20 22 28 22 20 63 | 68 61 72 2d 74 6f 2d 73 |ry "(" c|har-to-s|
|00000600| 74 72 69 6e 67 20 22 20 | 20 22 20 73 74 61 6e 64 |tring " | " stand|
|00000610| 61 72 64 2d 73 79 6e 74 | 61 78 2d 74 61 62 6c 65 |ard-synt|ax-table|
|00000620| 20 22 29 22 5d 20 35 20 | 28 23 24 20 2e 20 31 30 | ")"] 5 |(#$ . 10|
|00000630| 37 36 29 5d 29 0a 23 40 | 32 38 36 20 4d 61 6b 65 |76)]).#@|286 Make|
|00000640| 20 63 68 61 72 61 63 74 | 65 72 73 20 55 43 20 61 | charact|ers UC a|
|00000650| 6e 64 20 4c 43 20 61 20 | 70 61 69 72 20 6f 66 20 |nd LC a |pair of |
|00000660| 69 6e 74 65 72 2d 63 61 | 73 65 2d 63 6f 6e 76 65 |inter-ca|se-conve|
|00000670| 72 74 69 6e 67 20 6c 65 | 74 74 65 72 73 2e 0a 54 |rting le|tters..T|
|00000680| 68 69 73 20 73 65 74 73 | 20 74 68 65 20 65 6e 74 |his sets| the ent|
|00000690| 72 69 65 73 20 66 6f 72 | 20 63 68 61 72 61 63 74 |ries for| charact|
|000006a0| 65 72 73 20 55 43 20 61 | 6e 64 20 4c 43 20 69 6e |ers UC a|nd LC in|
|000006b0| 20 54 41 42 4c 45 2c 20 | 77 68 69 63 68 20 69 73 | TABLE, |which is|
|000006c0| 20 61 20 73 74 72 69 6e | 67 0a 74 68 61 74 20 77 | a strin|g.that w|
|000006d0| 69 6c 6c 20 62 65 20 75 | 73 65 64 20 61 73 20 74 |ill be u|sed as t|
|000006e0| 68 65 20 64 6f 77 6e 63 | 61 73 65 20 70 61 72 74 |he downc|ase part|
|000006f0| 20 6f 66 20 61 20 63 61 | 73 65 20 74 61 62 6c 65 | of a ca|se table|
|00000700| 2e 0a 49 74 20 61 6c 73 | 6f 20 6d 6f 64 69 66 69 |..It als|o modifi|
|00000710| 65 73 20 60 73 74 61 6e | 64 61 72 64 2d 73 79 6e |es `stan|dard-syn|
|00000720| 74 61 78 2d 74 61 62 6c | 65 27 20 74 6f 20 67 69 |tax-tabl|e' to gi|
|00000730| 76 65 20 74 68 65 6d 20 | 74 68 65 20 73 79 6e 74 |ve them |the synt|
|00000740| 61 78 20 6f 66 0a 77 6f | 72 64 20 63 6f 6e 73 74 |ax of.wo|rd const|
|00000750| 69 74 75 65 6e 74 73 2e | 1f 0a 28 64 65 66 61 6c |ituents.|..(defal|
|00000760| 69 61 73 20 27 73 65 74 | 2d 63 61 73 65 2d 73 79 |ias 'set|-case-sy|
|00000770| 6e 74 61 78 2d 70 61 69 | 72 20 23 5b 28 75 63 20 |ntax-pai|r #[(uc |
|00000780| 6c 63 20 74 61 62 6c 65 | 29 20 22 08 09 5c 6e 49 |lc table|) "..\nI|
|00000790| 88 08 5c 6e 89 49 88 c3 | 08 c4 c5 23 88 c3 08 c6 |..\n.I..|...#....|
|000007a0| c5 23 88 c3 08 c7 c5 23 | 88 c8 5c 6e c9 ca 20 23 |.#.....#|..\n.. #|
|000007b0| 88 c8 09 c9 ca 20 23 87 | 22 20 5b 74 61 62 6c 65 |..... #.|" [table|
|000007c0| 20 75 63 20 6c 63 20 73 | 65 74 2d 63 68 61 72 2d | uc lc s|et-char-|
|000007d0| 74 61 62 6c 65 2d 65 78 | 74 72 61 2d 73 6c 6f 74 |table-ex|tra-slot|
|000007e0| 20 30 20 6e 69 6c 20 31 | 20 32 20 6d 6f 64 69 66 | 0 nil 1| 2 modif|
|000007f0| 79 2d 73 79 6e 74 61 78 | 2d 65 6e 74 72 79 20 22 |y-syntax|-entry "|
|00000800| 77 20 20 20 22 20 73 74 | 61 6e 64 61 72 64 2d 73 |w " st|andard-s|
|00000810| 79 6e 74 61 78 2d 74 61 | 62 6c 65 5d 20 34 20 28 |yntax-ta|ble] 4 (|
|00000820| 23 24 20 2e 20 31 35 39 | 36 29 5d 29 0a 23 40 32 |#$ . 159|6)]).#@2|
|00000830| 35 37 20 4d 61 6b 65 20 | 63 68 61 72 61 63 74 65 |57 Make |characte|
|00000840| 72 73 20 43 20 63 61 73 | 65 2d 69 6e 76 61 72 69 |rs C cas|e-invari|
|00000850| 61 6e 74 20 77 69 74 68 | 20 73 79 6e 74 61 78 20 |ant with| syntax |
|00000860| 53 59 4e 54 41 58 2e 0a | 54 68 69 73 20 73 65 74 |SYNTAX..|This set|
|00000870| 73 20 74 68 65 20 65 6e | 74 72 69 65 73 20 66 6f |s the en|tries fo|
|00000880| 72 20 63 68 61 72 61 63 | 74 65 72 20 43 20 69 6e |r charac|ter C in|
|00000890| 20 54 41 42 4c 45 2c 20 | 77 68 69 63 68 20 69 73 | TABLE, |which is|
|000008a0| 20 61 20 73 74 72 69 6e | 67 0a 74 68 61 74 20 77 | a strin|g.that w|
|000008b0| 69 6c 6c 20 62 65 20 75 | 73 65 64 20 61 73 20 74 |ill be u|sed as t|
|000008c0| 68 65 20 64 6f 77 6e 63 | 61 73 65 20 70 61 72 74 |he downc|ase part|
|000008d0| 20 6f 66 20 61 20 63 61 | 73 65 20 74 61 62 6c 65 | of a ca|se table|
|000008e0| 2e 0a 49 74 20 61 6c 73 | 6f 20 6d 6f 64 69 66 69 |..It als|o modifi|
|000008f0| 65 73 20 60 73 74 61 6e | 64 61 72 64 2d 73 79 6e |es `stan|dard-syn|
|00000900| 74 61 78 2d 74 61 62 6c | 65 27 2e 0a 53 59 4e 54 |tax-tabl|e'..SYNT|
|00000910| 41 58 20 73 68 6f 75 6c | 64 20 62 65 20 22 20 22 |AX shoul|d be " "|
|00000920| 2c 20 22 77 22 2c 20 22 | 2e 22 20 6f 72 20 22 5f |, "w", "|." or "_|
|00000930| 22 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |"...(def|alias 's|
|00000940| 65 74 2d 63 61 73 65 2d | 73 79 6e 74 61 78 20 23 |et-case-|syntax #|
|00000950| 5b 28 63 20 73 79 6e 74 | 61 78 20 74 61 62 6c 65 |[(c synt|ax table|
|00000960| 29 20 22 08 09 89 49 88 | c2 08 c3 c4 23 88 c2 08 |) "...I.|....#...|
|00000970| c5 c4 23 88 c2 08 c6 c4 | 23 88 c7 09 0e 08 c9 20 |..#.....|#...... |
|00000980| 23 87 22 20 5b 74 61 62 | 6c 65 20 63 20 73 65 74 |#." [tab|le c set|
|00000990| 2d 63 68 61 72 2d 74 61 | 62 6c 65 2d 65 78 74 72 |-char-ta|ble-extr|
|000009a0| 61 2d 73 6c 6f 74 20 30 | 20 6e 69 6c 20 31 20 32 |a-slot 0| nil 1 2|
|000009b0| 20 6d 6f 64 69 66 79 2d | 73 79 6e 74 61 78 2d 65 | modify-|syntax-e|
|000009c0| 6e 74 72 79 20 73 79 6e | 74 61 78 20 73 74 61 6e |ntry syn|tax stan|
|000009d0| 64 61 72 64 2d 73 79 6e | 74 61 78 2d 74 61 62 6c |dard-syn|tax-tabl|
|000009e0| 65 5d 20 34 20 28 23 24 | 20 2e 20 32 30 39 39 29 |e] 4 (#$| . 2099)|
|000009f0| 5d 29 0a 28 70 72 6f 76 | 69 64 65 20 28 71 75 6f |]).(prov|ide (quo|
|00000a00| 74 65 20 63 61 73 65 2d | 74 61 62 6c 65 29 29 0a |te case-|table)).|
+--------+-------------------------+-------------------------+--------+--------+